#ifndef MESSAGEDATA_H
#define MESSAGEDATA_H

#include <QPixmap>
#include <QString>
#include <QTextDocument>
class QMovie;

struct MessageData
{
    QString id;
    QPixmap avatar;
    QString name;
    QString content;
    int count = 0;
    QString gifPath;
    QMovie *ext = nullptr;// 拓展
};

Q_DECLARE_METATYPE(MessageData)//通过QVariant来初始化数据

#endif // MESSAGEDATA_H
